package org.springframework.ioc.beanfactory.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ioc.beanfactory.beanprocess.ResourceName;

public class MergeBean {

	public MergeBean(){
		System.out.println("MergeBean constructor invoke.....");
	}
	@ResourceName(id="teacher")
	private Person teacher;
	@ResourceName(id="student",injectMethodName="setZhangShan")
	private Person student;
	@Autowired
	private GeneralBean beanInit;
	
	private LazyBean layBean;
	
	public Person getTeacher() {
		return teacher;
	}
	public void setTeacher(Person teacher) {
		this.teacher = teacher;
	}
	public Person getStudent() {
		return student;
	}
	public void setZhangShan(Person student) {
		this.student = student;
	}
	public GeneralBean getBeanInit() {
		return beanInit;
	}
	public void setLayBean(LazyBean layBean) {
		this.layBean = layBean;
	}
	
	
}
